//修改
public function edit($data){
    return $this->allowField(true)->save($data,['id'=>$data['id']]);
}